export function getCurrentDateTimeWithTimezone() {  
    const now = new Date();  
    
    // 格式化日期和时间部分  
    const year = now.getFullYear();  
    const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的  
    const day = String(now.getDate()).padStart(2, '0');  
    const hours = String(now.getHours()).padStart(2, '0');  
    const minutes = String(now.getMinutes()).padStart(2, '0');  
    const seconds = String(now.getSeconds()).padStart(2, '0');  
    const milliseconds = String(now.getMilliseconds()).padStart(3, '0');  
    
    // 获取时区偏移量，并转换为'+HH:mm'格式  
    const timezoneOffset = -now.getTimezoneOffset();  
    const offsetHours = Math.floor(Math.abs(timezoneOffset) / 60);  
    const offsetMinutes = Math.abs(timezoneOffset) % 60;  
    const timezoneString = (timezoneOffset < 0 ? '+' : '-') +   
      offsetHours.toString().padStart(2, '0') + ':' +   
      offsetMinutes.toString().padStart(2, '0');  
    
    // 拼接完整的字符串  
    return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${milliseconds}${timezoneString}`;  
  }  
    